<template>
	<view class="search-list" >
		<view class="list-item" v-for="item in arr">
			 <navigator url="/pages/topic_item/topic_item" class="link">
				 列表{{item}}
			 </navigator>
		</view>
	</view>
</template>

<script setup>
	//自定义属性接收父组件传递的参数
	defineProps({
		arr: {
			type: Array
		}
	})
</script>


<style lang="scss">
// 2.0 列表
.search-list {
	padding: 0 30rpx;
	.list-item {
		width: 100%;
		.link {
			display: block;
			width: 100%;
			padding: 30rpx 10rpx;
			border-bottom: 1px dashed #ccc;
		}
	}
}
</style>